<?php
declare(strict_types=1);
namespace Service\GoodsService;
use Service\BaseService;
use App\Model\BbcModel\GoodsSale;

/**
 * 商品销量
 * 
 */
class GoodsSaleService extends BaseService
{
    
    /**
     * 批量获取渠道商品清单
     * @param array $goodsIds
     */
    public function queryGoodsList(int $cid ,array $goodsIds)
    {
        return GoodsSale::instance()
        ->where('cid',$cid)
        ->whereIn('id',$goodsIds)
        ->get()
        ->toArray();
    }
}
